package com.chh.pdclient.api;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.chh.pdclient.dto.ActivityAddCmd;
import com.chh.pdclient.dto.ActivityUpdateCmd;
import com.chh.pdclient.dto.data.ActivityVO;
import com.chh.pdclient.dto.data.DrawResultVO;
import com.chh.pdclient.dto.query.ActivityListByParamQuery;

public interface IActivityService {

    ActivityVO add(ActivityAddCmd cmd);

    ActivityVO update(ActivityUpdateCmd cmd);


    IPage<ActivityVO> page(ActivityListByParamQuery query);

    ActivityVO one(Long id);

    /**
     * 用户抽奖接口
     * @param activityId
     * @return
     */
    DrawResultVO draw(Long activityId);
}
